<?php $__env->startSection('title',"{$data['post']['title']}"); ?>
<?php $__env->startSection('body'); ?>
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <meta name="huifu" content="<?php echo e($urls['url']); ?>">
    <script src="/js/app/post.js">
        // function huifu(comment_id,post_id) {
        //     alert(comment_id);
        // }
    </script>
    <article class="article">
        <header>
            <h1 class="text-center"><?php echo e($data['post']['title']); ?></h1>
            <dl class="dl-inline">
                <dt>贴主:</dt>
                <dd><?php echo e($data['post']['user']['nick']); ?></dd>
                <dt>最后修订：</dt>
                <dd><?php echo e(date("y-m-d h:i:s",substr($data['post']['updateTime'],0,-3))); ?></dd>
                <dt></dt>
                <dd class="pull-right"><span class="label label-success"><?php echo e($data['post']['category']['title']); ?></span> <span class="label label-warning"><?php echo e($data['post']['category']['description']); ?></span> <span class="label label-info"><?php echo e($data['post']['category']['postCountFormated']); ?></span></dd>
            </dl>
        </header>
        <section class="content">
            <blockquote>
                <p><?php echo e($data['post']['detail']); ?></p>
                <?php if(!empty($data['post']['images'])): ?>
                    <?php $__currentLoopData = $data['post']['images']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $scr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                        <img src="<?php echo e($scr); ?>" width="200px" height="200px" class="img-responsive">
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
            </blockquote>
            <?php $__currentLoopData = $data['comments']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

            <div class="comment">
                <a href="###" class="avatar">
                    <img src="<?php echo e($item['user']['avatar']); ?>" width="100%" height="100%">
                </a>
                <div class="content">
                    <div class="pull-right text-muted"><?php echo e(date("y-m-d h:i:s",substr($item['createTime'],0,-3))); ?></div>
                    <div><a href="###"><strong><?php echo e($item['user']['nick']); ?></strong></a>
                        <?php if(!empty($item['refComment'])): ?>
                        <span class="text-muted">回复</span> <a href="###"><?php echo e($item['refComment']['nick']); ?></a>
                        <?php endif; ?>
                    </div>
                    <div class="text" comment_id="<?php echo e($item['commentID']); ?>"><?php echo e($item['text']); ?></div>
                    <div class="actions">


                        <button type="button" data-custom="<input id='text' type='text' name='text' class='form-control'> <center><button class='btn btn-info' onclick='huifu(<?php echo e($item['commentID']); ?>,<?php echo e($data['post']['postID']); ?>)'>回复</button></center>" data-toggle="modal" class="btn btn-danger" >回复</button>
                    </div>
                </div>
            </div>

            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </section>
        <footer style="position:absolute;bottom:0;width:85%;">




        </footer>
    </article>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('public.pub', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>